home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
et
/
et3_0-a1.lha
/
et3
/
src
/
Progress.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-05
|
811b
|
64 lines
#ifdef __GNUG__
#pragma implementation
#endif
#include "Progress.h"
#include "Class.h"
static Progress dfltProgress;
Progress *gProgress= &dfltProgress;
//---- Progress ----------------------------------------------------------------
static bool inProgress;
NewMetaImpl0(Progress, Object);
Progress::Progress()
{
}
void Progress::Start(char *message, int mx)
{
if (inProgress)
Stop();
inProgress= TRUE;
curr= 0;
SetMax(mx);
SetMessage(message);
SetUp();
}
void Progress::SetUp()
{
}
void Progress::SetMessage(char*)
{
}
bool Progress::SetVal()
{
return FALSE;
}
void Progress::Stop()
{
Abort(TRUE);
timeout= FALSE;
inProgress= FALSE;
}
void Progress::Abort()
{
Abort(FALSE);
timeout= FALSE;
inProgress= FALSE;
}
void Progress::Abort(bool)
{
}